/*
 * Copyright 2002-2015 the Beijing Brain Technology co.,LTD http://www.bris.cn/
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.bris.niosocket.message;


/**
 * 消息接口,定义了消息的基本规则</br>
 * 2015年11月26日</br>
 * @author xunaidong
 * @since 1.0.0
 */
public interface IMessage {
	/**
	 * 
	 * 获取服务名称 <br/> 
	 * @author xunaidong 
	 * @return 
	 * @since 1.0.0
	 */
	String getPath();
	
	/**
	 * 返回消息流水号<br/> 
	 * @author xunaidong 
	 * @return 
	 * @since 1.0.0
	 */
	SerialNumber getSerialNumber();
}
